package config;

import javax.sql.DataSource;

import org.apache.commons.dbcp.BasicDataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages={"actor","service","collector"})
public class MyConfig {
	@Bean(name="ds")
	public DataSource getDataSource(){
		BasicDataSource ds = new BasicDataSource();
		ds.setUrl("");
		ds.setUsername("");
		
		return ds;
	}
}
